<div class="header">
      <div class="posHeader">
            <div class="headCent">
                  <a href="/" class="logo"><img src="/hdocs/style/img/logo.jpg"></a>
                  <div class="nav">
                        <a href="/home.jsp" class="def"><span #if($menuIndex.equals("index")) class="acsp" #end>首页</span></a>
                        <a href="/topic/subjects.jsp" id="zhuti" class="def"><span #if($menuIndex.equals("topic")) class="acsp" #end>主题</span><em></em></a>
                        <a href="/darren/darrens.jsp" class="def"><span #if($menuIndex.equals("darren")) class="acsp" #end>达人</span></a>
                        <a href="/faq/questions.jsp" class="def"><span #if($menuIndex.equals("faq")) class="acsp" #end>问答</span></a>
                  </div>
                  <div class="headRi">
                        #if("$!sessionLoginuser.username"=="")
                        <p class="slogon">
                        	<a href="/darren/req.html" class="help">帮助中心</a> 
                        	<a href="/auth/register.html" class="qq">注册</a>
                        	<a href="/auth/login.html" class="weibo">登录</a>
                        </p>
					    #else
					    <div class="cenPs">
							<a href="/message/notifys.jsp" class="flash">通知</a>
							<a href="/message/lettersInbox.jsp" class="homeTek">站内信</a>
							<p class="cenPsa">
								<a href="/user/index.jsp" class="usName">$!sessionLoginuser.username<em></em></a>
								<em><img src="$!sessionLoginuser.images[4]"></em>
							</p>
					    </div>
					    <div class="ussTiv" style="display:none;">
	                        <p class="cenPsm">
	                        	<a href="/user/index.jsp" class="usNamev">$!sessionLoginuser.username<em></em></a>
	                        	<em><img src="$!sessionLoginuser.images[4]"></em>
	                        </p>
	                        <a href="/user/index.jsp" class="ussa">个人主页</a>
	                        #if($!sessionLoginuser.usertype==10)
	                        <a href="/admin/index.jsp" class="ussa">进入管理后台</a>
	                        #end
	                        <a href="/setting/modifyInfoInit.jsp" class="ussa">设置</a>
	                        <a href="/auth/logout.jsp" class="ussa">退出</a>
	                    </div>
					    #end
					    <div class="seachFrm">
					    	<form id="searchForm" action="/search/articles.jsp">
                              <input id="searchValue" type="text" name="searchValue" type="text" onfocus="setText()" class="seach" value="寻找喜欢的内容或人">
                              <a href="javascript:search();" class="seachBtn"></a>
                             </form>
                             <script>
								function search(){
									$("#searchForm").submit();
								}
								function setText(){
									var username = $("#searchValue").val();
									if(username=="寻找喜欢的内容或人"){
										$("#searchValue").val("");
									}
								}
							</script>
                        </div>
                  </div>
            </div>
            <div class="navList">
            	#foreach( $subject in $topSubjects)
            	<a href="/topic/subject.jsp?subjectid=$!subject.id" class="nlsFa">
            	<em><img src="$!subject.images[5]"></em>$!subject.title</a>
              	#end
            </div>
      </div>
</div>
<script>
jQuery(document).ready(function(){
	jQuery(".cenPsa").mouseover(function(){
		jQuery(".ussTiv").show();
	});
	jQuery(".ussTiv").mouseleave(function(){
		jQuery(".ussTiv").hide();
	});
	jQuery(".navList").hide();
	
	jQuery("#zhuti").mouseover(function(){
		jQuery(".navList").show();
        jQuery(this).attr('class','navMe');
	});
	jQuery(".navList").mouseleave(function(){
		jQuery(".navList").delay(1000).hide();
        jQuery("#zhuti").attr('class','def');
	});
	jQuery("#zhuti").mouseleave(function(){
	  	jQuery(".navList").delay(1000).hide();
        jQuery("#zhuti").attr('class','def');
	});
	jQuery(".navList").mouseover(function(){
		jQuery(".navList").show();
        jQuery("#zhuti").attr('class','navMe');
	});
	
});
</script>
